package com.syg.transaction.Aspect;

import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.Configuration;

/**
 * @author syg
 */
@org.aspectj.lang.annotation.Aspect
@Configuration
public class Aspect {
    @Pointcut("execution(* com.syg.transaction.service.Service.save(..))")
    public void aspect() {
        System.out.println("AspectCase02,这个方法不会被执行");
    }

    @Before("aspect()")
    public void before() {
        System.out.println("before");
    }
}
